package com.jeecms.wicool.manager.user;

import java.util.Date;
import java.util.List;

import com.jeecms.cms.entity.main.CmsUser;
import com.jeecms.common.hibernate3.Updater;
import com.jeecms.common.page.Pagination;
import com.jeecms.wicool.entity.user.CheckCode;
import com.jeecms.wicool.entity.user.UserInfo;
import com.jeecms.wicool.entity.user.Address;

public interface UserInfoMng {
	public Pagination getPage(Integer shopId,String mobile,String name,Short status,Integer carAdviserId,Date q_createTime_start,
			Date q_createTime_end,int pageNo, int pageSize,CmsUser user);
	public Pagination getPageAddress(String userName,Integer shopId,String consigneeName,int pageNo, int pageSize);
	public UserInfo findById(Integer id); 
	public Address findByIdAddress(Integer id); 
	public UserInfo update(UserInfo bean,Integer shopId,Integer carAdviserId);
	public Address updateAddress(Address bean,Integer shopId);

	public UserInfo save(UserInfo bean,Integer shopId,Integer carAdviserId);
	public UserInfo deleteById(Integer id);
	public UserInfo[] deleteByIds(Integer[] ids);
	
	public Address deleteByIdAddress(Integer id);
	public Address[] deleteByIdsAddress(Integer[] ids);
	
	public List<Address> getListAddressByUserId(Integer userId);
	public List<Address> updateAddressList(List<Address> listNow, Integer userId);
	public List<UserInfo> getAll(CmsUser user);
	
	public UserInfo resetPwd(Integer id);
	
	
	public Pagination getPageCheckCode(String school,String classes,String checkcode,int pageNo, int pageSize);
	
	public CheckCode getCheckCodeById(Integer id);
	
	public CheckCode saveCheckCode(CheckCode bean);
	
	public CheckCode updateCheckCode(CheckCode bean);
	
	public CheckCode deleteCheckCode(Integer id);
}